import { MicroApp, useStore } from 'umi';

export default function (props) {
    var store = useStore()
    return (
        <MicroApp
            name={props.name}

            autoSetLoading={true}

            // 微应用容器 class
            className="myContainer"
            // wrapper class，仅开启 loading 动画时生效
            wrapperClassName="myWrapper"

            masterData={{
                store: store,
                ...props,
            }}
        />
    );
}
